#include "widget.h"
#include "ui_widget.h"
#include "code.h"

Widget::Widget(QWidget *parent) :
    QWidget(parent),
    ui(new Ui::Widget)
{
    ui->setupUi(this);
    QByteArray text("www.baidu.com");
    QRCode *code = new QRCode(text,QSize(300,300),this);
    code->setMargin(10);
    code->show();
}

Widget::~Widget()
{
    delete ui;
}
